#include <msp430g2231.h>

void main(void)
{
  WDTCTL = WDTPW + WDTHOLD;         // Stop watchdog timer
  P1DIR=0x41;
 while(1)
 {
  P1OUT ^= 0x01; 		  // green LED on
  _delay_cycles(50000);                
  P1OUT ^= 0x40; 	         // red LED on   	  
  _delay_cycles(50000);
 }
}
  
  
  
 